package com.bw.lib_mvvm

import androidx.lifecycle.ViewModel

/**
 *@ClassName BaseViewModel
 *@Author hu..
 *@Data 2024/7/21
 *@Description
 */
abstract class BaseViewModel :ViewModel(){

    fun <T:BaseModel> getModel(targetRepo:Class<T>):T = targetRepo.newInstance()

}